package com.web.action.admin;

import com.jfinal.core.Controller;
import com.web.remote.dao.Mot;
import com.web.remote.dao.Users;

public class AdminAction extends Controller {

	public void index() {
		
		// renderText("/admin/index");
		// System.out.println("index");
		// render("index.html");
		renderNull();
		// renderError(404);
	}
	
	public void test1(){

		/*List<Record> users = Db.use("mysql1").find("select * from users");
		System.out.println(users);*/
		Users users = Users.dao.findById(1);
		System.out.println(users);
		renderNull();
	}
	
	public void test2(){
		
		/*List<Record> mot = Db.use("mysql2").find("select * from mot");
		System.out.println(mot);*/
		Mot mot = Mot.dao.findById(1);
		System.out.println(mot);
		renderNull();
	}
}
